﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FluentBinding.WinForms.Convertors
{
    /// <summary>
    /// TODO: add cultures and formats support
    /// </summary>
    public class DoubleToString : ITypeConvertor<double, string>
    {
        #region ITypeConvertor<double,string> Members

        public string Convert(double value)
        {
            return value.ToString();
        }

        public double Convert(string value)
        {
            return double.Parse(value);
        }

        #endregion
    }
}
